#ifndef SES_TIMER_H_
#define SES_TIMER_H_

#include <avr/io.h>
#include <util/delay.h>
#include <stdint.h>
#include "../ses_common.h"



/*
 * Timer that executes a given callback function every 1 ms.
 */



/* Type of function pointer used as timer callback */
typedef void (*pTimerCallback)(void);



/*
 * Initializes hardware timer 2 of MCU.
 * Timer callback is executed each 1 ms.
 *
 * @param cb	valid pointer to callback function
 */
void timer2_init(pTimerCallback cb_task);



#endif /* SES_TIMER_H_ */
